import type { ISearchConfig } from '@/components/page-search/type';

const searchConfig: ISearchConfig = {
  pageName: 'goods',
  formItems: [
    {
      label: '商品名称',
      prop: 'name',
      type: 'input',
      placeholder: '请输入商品名称'
    },
    {
      // 商品地址
      label: '商品地址',
      prop: 'address',
      type: 'input',
      placeholder: '请输入商品地址'
    },
    {
      // 状态
      label: '状态',
      prop: 'status',
      type: 'select',
      placeholder: '请选择状态',
      options: [
        {
          label: '已上架',
          value: 1
        },
        {
          label: '已下架',
          value: 0
        }
      ]
    },
    {
      label: '创建时间',
      prop: 'createAt',
      type: 'date-picker',
      placeholder: '请选择创建时间'
    }
  ]
};

export default searchConfig;
